<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:fragment="common_header(title)">
    <meta charset="UTF-8">
    <title th:text="${title}">家电维修系统</title>
    <!-- 使用国内 CDN -->
    <link rel="stylesheet" id="bootstrap-css">
    <link rel="stylesheet" id="fontawesome-css">
    <script id="jquery-js"></script>
    <script id="bootstrap-js"></script>
    <script>
        // 动态加载 CDN 资源
        window.addEventListener('DOMContentLoaded', (event) => {
            document.getElementById('bootstrap-css').href = DEFAULT_CDN.BOOTSTRAP_CSS;
            if (document.getElementById('fontawesome-css')) {
                document.getElementById('fontawesome-css').href = DEFAULT_CDN.FONT_AWESOME;
            }
            document.getElementById('jquery-js').src = DEFAULT_CDN.JQUERY;
            document.getElementById('bootstrap-js').src = DEFAULT_CDN.BOOTSTRAP_JS;
            
            // 加载其他可选资源
            if (document.getElementById('echarts-js')) {
                document.getElementById('echarts-js').src = DEFAULT_CDN.ECHARTS;
            }
            if (document.getElementById('chartjs-js')) {
                document.getElementById('chartjs-js').src = DEFAULT_CDN.CHARTJS;
            }
            if (document.getElementById('bmap-js')) {
                document.getElementById('bmap-js').src = BAIDU_MAP_CONFIG.CDN_URL;
            }
        });
    </script>
</head>
</html> 